package fr.chronogps.moto.testChrono;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class BddGps extends SQLiteOpenHelper{

	private static final String TABLE_GPS= "GPS";
	private static final String COL_ID = "Id";
	private static final String COL_LATITUDE = "Latitude";
	private static final String COL_LONGITUDE = "Longitude";
	private static final String COL_ALTITUDE = "Altitude";
	private static final String COL_COMPAS = "Compas";
	private static final String COL_PRECISION = "Precision";
	private static final String COL_VITESSE = "Vitesse";
	private static final String COL_TIME ="Time";
	
	private static final String CREATE_BDD = "CREATE TABLE "+ TABLE_GPS + " ("+ COL_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "
		+ COL_LATITUDE + " double NOT NULL, " + COL_LONGITUDE + " double NOT NULL);"; 
	
	public BddGps(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_BDD);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		
	}

}
